import { request } from '@/api/service'

export default {
  getOutdatedBlood (params) {
    return request({
      url: '/api/blood/outdated',
      method: 'get',
      params: {
        ...params
      }
    })
  },
  deleteOutdatedBlood (id) {
    return request({
      url: '/api/blood/delete',
      method: 'post',
      data: {
        id
      }
    })
  },
  getRepositoryReport (params) {
    return request({
      url: '/api/repository/report',
      method: 'get',
      params
    })
  },
  getBloodReport (params) {
    return request({
      url: '/api/blood/report',
      method: 'get',
      params
    })
  },
  getTypeReport (params) {
    return request({
      url: '/api/blood/vreport',
      method: 'get',
      params
    })
  }
}
